package com.base.commonlib.http;

/**
 * Date：2019/3/25 下午1:17
 * Creator：arvin
 * Des：
 */

public class ResponseT<T> {

    private static final int SUCCESS=1;

    private int code;
    private String msg;
    private int status;
    private T data;
    private String errMsg;

    public static int getSUCCESS() {
        return SUCCESS;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public boolean isSuccess()
    {
        return this.status==SUCCESS;
    }
}
